<template>
  <div>
    <div class="bg-white grid-content">
      <div style="overflow: hidden">
        <div class="mytitle">
          <svg-icon icon-class="yjbb" class="myIcon" /> 月度生产数据统计表审核
        </div>
      </div>
      <!-- 表格 -->
      <el-table :data="tableData" stripe>
        <el-table-column type="index" label="序号" :index="indexMethod">
        </el-table-column>
        <el-table-column prop="rq" label="日期" width="80" align="center">
        </el-table-column>
        <el-table-column prop="gs" label="公司" align="center">
          <el-table-column prop="gs_cs" label="产油" align="center">
            <el-table-column prop="gsCsJkcy" label="井口产油" align="center">
            </el-table-column>
            <el-table-column prop="gsCsMdwj" label="末端微机" align="center">
            </el-table-column>
            <el-table-column prop="gsCsJhcy" label="计划产油" align="center">
            </el-table-column>
            <el-table-column prop="gsCsHscy" label="核实产油" align="center">
            </el-table-column>
            <el-table-column prop="gsCsGsws" label="公司外输" align="center">
            </el-table-column>
            <el-table-column prop="gsCsElws" label="二联外输" align="center">
            </el-table-column>
          </el-table-column>
          <el-table-column prop="gsLy" label="拉油" align="center">
            <el-table-column prop="gsLyLy" label="拉油" align="center">
            </el-table-column>
            <el-table-column prop="gsLyTl" label="提捞" align="center">
            </el-table-column>
            <el-table-column prop="gsLyLdy" label="落地油" align="center">
            </el-table-column>
          </el-table-column>
          <el-table-column prop="gsKc" label="库存" align="center">
            <el-table-column prop="gsKcGskc" label="公司库存" align="center">
            </el-table-column>
            <el-table-column prop="gsKcElcz" label="二联差值" align="center">
            </el-table-column>
            <el-table-column prop="gsKcElkc" label="二联库存" align="center">
            </el-table-column>
          </el-table-column>
          <el-table-column prop="gsZs" label="注水" align="center">
            <el-table-column prop="gsZsJhzs" label="计划水量" align="center">
            </el-table-column>
            <el-table-column prop="gsZsSjsl" label="实际水量" align="center">
            </el-table-column>
          </el-table-column>
          <el-table-column prop="gs_jy" label="积压" align="center">
            <el-table-column prop="gsJyZy" label="作业" align="center">
            </el-table-column>
            <el-table-column prop="gsJyDzy" label="待作业" align="center">
            </el-table-column>
          </el-table-column>
          <el-table-column prop="gsCy" label="测压" align="center">
            <el-table-column prop="gsCyYj" label="油井" align="center">
            </el-table-column>
            <el-table-column prop="gsCySj" label="水井" align="center">
            </el-table-column>
          </el-table-column>
        </el-table-column>
        <el-table-column prop="dyzyq" label="第一作业区" align="center">
          <el-table-column prop="dyzyqZyq" label="作业区" align="center">
            <el-table-column
              prop="dyzyqZyqJhcy"
              label="计划产油"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dyzyqZyqSjcy"
              label="实际产油"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dyzyqZyqJhzs"
              label="计划注水"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dyzyqZyqRzsl"
              label="日注水量"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dyzyqZyqZyjy"
              label="作业积压"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dyzyqZyqDzyjy"
              label="待作业积压"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dyzyqZyqYjcy"
              label="油井测压"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dyzyqZyqShjcy"
              label="水井测压"
              align="center"
            >
            </el-table-column>
            <el-table-column prop="dyzyqZyqKc" label="库存" align="center">
            </el-table-column>
          </el-table-column>
          <el-table-column prop="dyzyqS322Wj " label="树322" align="center">
            <el-table-column
              prop="dyzyqS322Wj"
              label="微机"
              width="40"
              align="center"
            >
            </el-table-column>
          </el-table-column>
          <el-table-column prop="dyzyqD12" label="东12" align="center">
            <el-table-column prop="dyzyqD12Wj" label="微机" align="center">
            </el-table-column>
          </el-table-column>
          <el-table-column prop="dyzyqS12" label="尚12" align="center">
            <el-table-column prop="dyzyqS12Wj" label="微机" align="center">
            </el-table-column>
          </el-table-column>
        </el-table-column>
        <el-table-column prop="dezyq" label="第二作业区" align="center">
          <el-table-column prop="dezyqZyq" label="作业区" align="center">
            <el-table-column
              prop="dezyqZyqJhcy"
              label="计划产油"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dezyqZyqSjcy"
              label="实际产油"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dezyqZyqJhzs"
              label="计划注水"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dezyqZyqRzsl"
              label="日注水量"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dezyqZyqZyjy"
              label="作业积压"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dezyqZyqDzyjy"
              label="待作业积压"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dezyqZyqYjcy"
              label="油井测压"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dezyqZyqShjcy"
              label="水井测压"
              align="center"
            >
            </el-table-column>
            <el-table-column prop="dezyqZyqKc" label="库存" align="center">
            </el-table-column>
          </el-table-column>
          <el-table-column prop="dezyqD16" label="东16" align="center">
            <el-table-column prop="dezyqD16Wj" label="微机" align="center">
            </el-table-column>
            <el-table-column
              prop="dezyqD16Wscl"
              label="污水处理"
              align="center"
            >
            </el-table-column>
          </el-table-column>
          <el-table-column prop="dezyqD14" label="东14" align="center">
            <el-table-column
              prop="dezyqD14382wj"
              label="382微机"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="deyzyqD14D14wj"
              label="东14微机"
              align="center"
            >
            </el-table-column>
          </el-table-column>
        </el-table-column>
        <el-table-column prop="dszyq" label="第三作业区" align="center">
          <el-table-column prop="dszyqZyq" label="作业区" align="center">
            <el-table-column
              prop="dszyqZyqJhcy"
              label="计划产油"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dszyqZyqSjcy"
              label="实际产油"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dszyqZyqJhzs"
              label="计划注水"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dszyqZyqRzsl"
              label="日注水量"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dszyqZyqZyjy"
              label="作业积压"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dszyqZyqDzyjy"
              label="待作业积压"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dszyqZyqYjcy"
              label="油井测压"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dszyqZyqShjcy"
              label="水井测压"
              align="center"
            >
            </el-table-column>
            <el-table-column prop="dszyqZyqKc" label="库存" align="center">
            </el-table-column>
          </el-table-column>
          <el-table-column prop="dszyqS2" label="树2" align="center">
            <el-table-column prop="dszyqS2Cyl" label="产油量" align="center">
            </el-table-column>
          </el-table-column>
          <el-table-column prop="dszyq101d" label="101队" align="center">
            <el-table-column prop="dszyq101dCyl" label="产油量" align="center">
            </el-table-column>
            <el-table-column
              prop="dszyq101dZrl"
              label="c02注入量"
              align="center"
            >
            </el-table-column>
          </el-table-column>
          <el-table-column prop="dszyqS16" label="树16" align="center">
            <el-table-column prop="dszyqS16Wj" label="微机" align="center">
            </el-table-column>
          </el-table-column>
        </el-table-column>
        <el-table-column prop="dsizyq" label="第四作业区" align="center">
          <el-table-column prop="dsizyqZyq" label="作业区" align="center">
            <el-table-column
              prop="dsizyqZyqJhcy"
              label="计划产油"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dsizyqZyqSjcy"
              label="实际产油"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dsizyqZyqJhzs"
              label="计划注水"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dsizyqZyqRzsl"
              label="日注水量"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dsizyqZyqZyjy"
              label="作业积压"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dsizyqZyqDzyjy"
              label="待作业积压"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dsizyqZyqYjcy"
              label="油井测压"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="dsizyqZyqShjcy"
              label="水井测压"
              align="center"
            >
            </el-table-column>
            <el-table-column prop="dsizyqZyqKc" label="库存" align="center">
            </el-table-column>
          </el-table-column>
          <el-table-column prop="dsizyqS103" label="树103" align="center">
            <el-table-column prop="dsizyqS103Wj" label="微机" align="center">
            </el-table-column>
          </el-table-column>
          <el-table-column prop="dsizyqS12" label="树12" align="center">
            <el-table-column prop="dsizyqS12Wj" label="微机" align="center">
            </el-table-column>
          </el-table-column>
          <el-table-column prop="dsizyqX30" label="徐30" align="center">
            <el-table-column prop="dsizyqX30Wj" label="微机" align="center">
            </el-table-column>
          </el-table-column>
          <el-table-column prop="dsizyqX6" label="徐6" align="center">
            <el-table-column
              prop="dsizyqX6Wj"
              label="微机"
              width="40"
              align="center"
            >
            </el-table-column>
          </el-table-column>
          <el-table-column prop="dsizyqYel" label="榆二联" align="center">
            <el-table-column
              prop="dsizyqYelEljy"
              label="二联接油"
              align="center"
            >
            </el-table-column>
            <el-table-column prop="dsizyqYelSc" label="输差" align="center">
            </el-table-column>
            <el-table-column prop="dsizyqYelDt" label="电脱" align="center">
            </el-table-column>
            <el-table-column prop="dsizyqYelWs" label="污水" align="center">
            </el-table-column>
          </el-table-column>
          <el-table-column prop="dsizyqMdjyl" label="末端接油量" align="center">
            <el-table-column
              prop="dsizyqMdjylSyz"
              label="试验站"
              align="center"
            >
            </el-table-column>
            <el-table-column prop="dsizyqMdjylD16" label="东16" align="center">
            </el-table-column>
            <el-table-column prop="dsizyqMdjylS8" label="树8" align="center">
            </el-table-column>
            <el-table-column
              prop="dsizyqMdjylS127"
              label="树127"
              align="center"
            >
            </el-table-column>
          </el-table-column>
        </el-table-column>
        <el-table-column prop="zz" label="肇州" align="center">
          <el-table-column prop="zy" label="肇州一工区" align="center">
            <el-table-column prop="zzZyJhcy" label="计划产油" align="center">
            </el-table-column>
            <el-table-column prop="zzZySjcy" label="实际产油" align="center">
            </el-table-column>
            <el-table-column prop="zzZyJhzs" label="计划注水" align="center">
            </el-table-column>
            <el-table-column prop="zzZyRzsl" label="日注水量" align="center">
            </el-table-column>
            <el-table-column prop="zzZyZyjy" label="作业积压" align="center">
            </el-table-column>
            <el-table-column prop="zzZyDzyjy" label="待作业积压" align="center">
            </el-table-column>
            <el-table-column prop="zzZyYjcy" label="油井测压" align="center">
            </el-table-column>
            <el-table-column prop="zzZyShjcy" label="水井测压" align="center">
            </el-table-column>
          </el-table-column>
          <el-table-column prop="ze" label="肇州二工区" align="center">
            <el-table-column prop="zzZeJhcy" label="计划产油" align="center">
            </el-table-column>
            <el-table-column prop="zzZeSjcy" label="实际产油" align="center">
            </el-table-column>
            <el-table-column prop="zzZeJhzs" label="计划注水" align="center">
            </el-table-column>
            <el-table-column prop="zzZeRzsl" label="日注水量" align="center">
            </el-table-column>
            <el-table-column prop="zzZeZyjy" label="作业积压" align="center">
            </el-table-column>
            <el-table-column prop="zzZeDzyjy" label="待作业积压" align="center">
            </el-table-column>
            <el-table-column prop="zzZeYjcy" label="油井测压" align="center">
            </el-table-column>
            <el-table-column prop="zzZeShjcy" label="水井测压" align="center">
            </el-table-column>
          </el-table-column>
        </el-table-column>
        <el-table-column prop="tlzyq" label="提捞作业区" align="center">
          <el-table-column prop="tlzyqZyq" label="作业区" align="center">
            <el-table-column
              prop="tlzyqZyqJhly"
              label="计划捞油"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="tlzyqZyqSjly"
              label="实际捞油"
              align="center"
            >
            </el-table-column>
          </el-table-column>
          <el-table-column prop="tlzyqXyd" label="卸油点" align="center">
            <el-table-column prop="tlzyqXydD16" label="东16" align="center">
            </el-table-column>
            <el-table-column prop="tlzyqXydS18" label="树18" align="center">
            </el-table-column>
            <el-table-column
              prop="tlzyqXydLyhj"
              label="捞油合计"
              align="center"
            >
            </el-table-column>
            <el-table-column
              prop="tlzyqXydXjly"
              label="新井捞油"
              align="center"
            >
            </el-table-column>
            <el-table-column prop="tlzyqXydLdy" label="落地油" align="center">
            </el-table-column>
          </el-table-column>
        </el-table-column>
        <el-table-column prop="bz" label="备注" width="100" align="center">
        </el-table-column>

        <el-table-column
          align="center"
          fixed="right"
          prop="approveStatus"
          label="审核状态"
        >
          <template slot-scope="scope">
            <el-tag
              :type="
                scope.row.approveStatus == '2'
                  ? 'success'
                  : scope.row.approveStatus == '1'
                  ? 'warning'
                  : scope.row.approveStatus == '0'
                  ? 'info'
                  : 'danger'
              "
              disable-transitions
              >{{
                scope.row.approveStatus == "2"
                  ? "已通过"
                  : scope.row.approveStatus == "1"
                  ? "未审核"
                  : scope.row.approveStatus == "0"
                  ? "未提交"
                  : "未通过"
              }}</el-tag
            >
          </template>
        </el-table-column>

        <el-table-column align="center" fixed="right" label="操作" width="100">
          <template slot-scope="scope">
            <el-button @click="handleClick(scope.row, 'check')" type="text"
              >查看</el-button
            >
            <el-button @click="handleClick(scope.row, 'edit')" type="text"
              >审核</el-button
            >
          </template>
        </el-table-column>
      </el-table>
      <!-- 分页器 -->
      <el-pagination
        align="right"
        background
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
        :current-page="pageNo"
        :page-sizes="[5, 10, 20, 30, 40, 50]"
        :page-size="pageSize"
        layout="total, sizes, prev, pager, next, jumper"
        :total="total"
      >
      </el-pagination>
    </div>

    <!-- 弹出框 -->
    <el-dialog
      :title="myDialogTitle"
      :visible.sync="dialogFormVisible"
      :before-close="handleClose"
      :custom-class="saveAsDialog"
    >
      <el-form
        v-show="ischeck"
        :inline="true"
        :model="ydscsjtjbForm"
        class="demo-form-inline"
        :rules="rules"
        ref="ydscsjtjbForm"
        :disabled="isInput"
        label-position="left"
        label-width="190px"
      >
        <!-- <el-divider content-position="left">基础信息</el-divider> -->
        <el-row>
          <el-col :span="12">
            <el-form-item label="日期:">
              <el-date-picker
                v-model="ydscsjtjbForm.rq"
                align="right"
                type="date"
                placeholder="请选择日期"
                :picker-options="pickerOptions"
              >
              </el-date-picker>
            </el-form-item>
          </el-col>
        </el-row>

        <el-divider content-position="left">公司</el-divider>

        <el-row>
          <el-col :span="12">
            <el-form-item label="井口产油">
              <el-input
                v-model="ydscsjtjbForm.gsCsJkcy"
                placeholder="请输入井口产油"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="末端微机:">
              <el-input
                v-model="ydscsjtjbForm.gsCsMdwj"
                placeholder="请输入末端微机"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="计划产油:">
              <el-input
                v-model="ydscsjtjbForm.gsCsJhcy"
                placeholder="请输入计划产油"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="核实产油：">
              <el-input
                v-model="ydscsjtjbForm.gsCsHscy"
                placeholder="请输入核实产油量"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="公司外输:">
              <el-input
                v-model="ydscsjtjbForm.gsCsGsws"
                placeholder="请输入公司外输"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="二联外输:">
              <el-input
                v-model="ydscsjtjbForm.gsCsElws"
                placeholder="请输入二联外输"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <!-- <el-divider content-position="left">公司拉油情况</el-divider> -->
        <el-row>
          <el-col :span="12">
            <el-form-item label="拉油:">
              <el-input
                v-model="ydscsjtjbForm.gsLyLy"
                placeholder="请输入拉油"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="提捞:">
              <el-input
                v-model="ydscsjtjbForm.gsLyTl"
                placeholder="请输入提捞"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="落地油:">
              <el-input
                v-model="ydscsjtjbForm.gsLyLdy"
                placeholder="请输入落地油"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="公司库存:">
              <el-input
                v-model="ydscsjtjbForm.gsKcGskc"
                placeholder="请输入公司库存"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <!-- <el-divider content-position="left">公司库存情况</el-divider> -->
        <el-row>
          <el-col :span="12">
            <el-form-item label="二联差值:">
              <el-input
                v-model="ydscsjtjbForm.gsKcElcz"
                placeholder="请输入二联差值"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="二联库存:">
              <el-input
                v-model="ydscsjtjbForm.gsKcElkc"
                placeholder="请输入二联库存"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>

        <!-- <el-divider content-position="left">公司注水情况</el-divider> -->

        <el-row>
          <el-col :span="12">
            <el-form-item label="计划水量:">
              <el-input
                v-model="ydscsjtjbForm.gsZsJhzs"
                placeholder="请输入计划水量"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="实际水量:">
              <el-input
                v-model="ydscsjtjbForm.gsZsSjsl"
                placeholder="请输入实际水量"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <!-- <el-divider content-position="left">公司积压测压情况</el-divider> -->
        <el-row>
          <el-col :span="12">
            <el-form-item label="作业:">
              <el-input
                v-model="ydscsjtjbForm.gsJyZy"
                placeholder="请输入作业积压"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="待作业:">
              <el-input
                v-model="ydscsjtjbForm.gsJyDzy"
                placeholder="请输入待作业积压"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="油井:">
              <el-input
                v-model="ydscsjtjbForm.gsCyYj"
                placeholder="请输入油井测压"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="水井:">
              <el-input
                v-model="ydscsjtjbForm.gsCySj"
                placeholder="请输入水井测压"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-divider content-position="left">第一作业区</el-divider>
        <el-row>
          <el-col :span="12">
            <el-form-item label="计划产油:">
              <el-input
                v-model="ydscsjtjbForm.dyzyqZyqJhcy"
                placeholder="请输入计划产油"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="实际产油:">
              <el-input
                v-model="ydscsjtjbForm.dyzyqZyqSjcy"
                placeholder="请输入实际产油"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="计划注水:">
              <el-input
                v-model="ydscsjtjbForm.dyzyqZyqJhzs"
                placeholder="请输入计划注水"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="日注水量:">
              <el-input
                v-model="ydscsjtjbForm.dyzyqZyqRzsl"
                placeholder="请输入日注水量"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="作业积压:">
              <el-input
                v-model="ydscsjtjbForm.dyzyqZyqZyjy"
                placeholder="请输入作业积压"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="待作业积压:">
              <el-input
                v-model="ydscsjtjbForm.dyzyqZyqDzyjy"
                placeholder="请输入待作业积压"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="油井测压:">
              <el-input
                v-model="ydscsjtjbForm.dyzyqZyqYjcy"
                placeholder="请输入油井测压"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="水井测压:">
              <el-input
                v-model="ydscsjtjbForm.dyzyqZyqShjcy"
                placeholder="请输入水井测压"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="库存:">
              <el-input
                v-model="ydscsjtjbForm.dyzyqZyqKc"
                placeholder="请输入库存"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="树322微机:">
              <el-input
                v-model="ydscsjtjbForm.dyzyqS322Wj"
                placeholder="请输入树322微机"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="东12微机:">
              <el-input
                v-model="ydscsjtjbForm.dyzyqD12Wj"
                placeholder="请输入东12微机"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="尚12微机:">
              <el-input
                v-model="ydscsjtjbForm.dyzyqS12Wj"
                placeholder="请输入尚12微机"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>

        <el-divider content-position="left">第二作业区</el-divider>

        <el-row>
          <el-col :span="12">
            <el-form-item label="计划产油:">
              <el-input
                v-model="ydscsjtjbForm.dezyqZyqJhcy"
                placeholder="请输入计划产油"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="实际产油:">
              <el-input
                v-model="ydscsjtjbForm.dezyqZyqSjcy"
                placeholder="请输入实际产油"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="计划注水:">
              <el-input
                v-model="ydscsjtjbForm.dezyqZyqJhzs"
                placeholder="请输入计划注水"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="日注水量:">
              <el-input
                v-model="ydscsjtjbForm.dezyqZyqRzsl"
                placeholder="请输入日注水量"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="作业积压:">
              <el-input
                v-model="ydscsjtjbForm.dezyqZyqZyjy"
                placeholder="请输入作业积压"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="待作业积压:">
              <el-input
                v-model="ydscsjtjbForm.dezyqZyqDzyjy"
                placeholder="请输入待作业积压"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="油井测压:">
              <el-input
                v-model="ydscsjtjbForm.dezyqZyqYjcy"
                placeholder="请输入油井测压"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="水井测压:">
              <el-input
                v-model="ydscsjtjbForm.dezyqZyqShjcy"
                placeholder="请输入水井测压"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="库存:">
              <el-input
                v-model="ydscsjtjbForm.dezyqZyqKc"
                placeholder="请输入库存"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="东16微机:">
              <el-input
                v-model="ydscsjtjbForm.dezyqD16Wj"
                placeholder="请输入东16微机"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="东16污水处理:">
              <el-input
                v-model="ydscsjtjbForm.dezyqD16Wscl"
                placeholder="请输入东16污水处理"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="东14-382微机:">
              <el-input
                v-model="ydscsjtjbForm.dezyqD14382wj"
                placeholder="请输入东14-382微机"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="东14微机:">
              <el-input
                v-model="ydscsjtjbForm.deyzyqD14D14wj"
                placeholder="请输入东14微机"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>

        <el-divider content-position="left">第三作业区</el-divider>

        <el-row>
          <el-col :span="12">
            <el-form-item label="计划产油:">
              <el-input
                v-model="ydscsjtjbForm.dszyqZyqJhcy"
                placeholder="请输入计划产油"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="实际产油:">
              <el-input
                v-model="ydscsjtjbForm.dszyqZyqSjcy"
                placeholder="请输入实际产油"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="计划注水:">
              <el-input
                v-model="ydscsjtjbForm.dszyqZyqJhzs"
                placeholder="请输入计划注水"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="日注水量:">
              <el-input
                v-model="ydscsjtjbForm.dszyqZyqRzsl"
                placeholder="请输入日注水量"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="作业积压:">
              <el-input
                v-model="ydscsjtjbForm.dszyqZyqZyjy"
                placeholder="请输入作业积压"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="待作业积压:">
              <el-input
                v-model="ydscsjtjbForm.dszyqZyqDzyjy"
                placeholder="请输入待作业积压"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="油井测压:">
              <el-input
                v-model="ydscsjtjbForm.dszyqZyqYjcy"
                placeholder="请输入油井测压"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="水井测压:">
              <el-input
                v-model="ydscsjtjbForm.dszyqZyqShjcy"
                placeholder="请输入水井测压"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="库存:">
              <el-input
                v-model="ydscsjtjbForm.dszyqZyqKc"
                placeholder="请输入库存"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="树2产油量:">
              <el-input
                v-model="ydscsjtjbForm.dszyqS2Cyl"
                placeholder="请输入树2产油量"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="101队产油量:">
              <el-input
                v-model="ydscsjtjbForm.dszyq101dCyl"
                placeholder="请输入101队产油量"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="101队C02注入量:">
              <el-input
                v-model="ydscsjtjbForm.dszyq101dZrl"
                placeholder="请输入101队C02注入量"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="树16微机:">
              <el-input
                v-model="ydscsjtjbForm.dszyqS16Wj"
                placeholder="请输入树16微机"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-divider content-position="left">第四作业区</el-divider>
        <el-row>
          <el-col :span="12">
            <el-form-item label="计划产油:">
              <el-input
                v-model="ydscsjtjbForm.dsizyqZyqJhcy"
                placeholder="请输入计划产油"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="实际产油:">
              <el-input
                v-model="ydscsjtjbForm.dsizyqZyqSjcy"
                placeholder="请输入实际产油"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="计划注水:">
              <el-input
                v-model="ydscsjtjbForm.dsizyqZyqJhzs"
                placeholder="请输入计划注水"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="日注水量:">
              <el-input
                v-model="ydscsjtjbForm.dsizyqZyqRzsl"
                placeholder="请输入日注水量"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="作业积压:">
              <el-input
                v-model="ydscsjtjbForm.dsizyqZyqZyjy"
                placeholder="请输入作业积压"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="待作业积压:">
              <el-input
                v-model="ydscsjtjbForm.dsizyqZyqDzyjy"
                placeholder="请输入待作业积压"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="油井测压:">
              <el-input
                v-model="ydscsjtjbForm.dsizyqZyqYjcy"
                placeholder="请输入油井测压"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="水井测压:">
              <el-input
                v-model="ydscsjtjbForm.dsizyqZyqShjcy"
                placeholder="请输入水井测压"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="库存:">
              <el-input
                v-model="ydscsjtjbForm.dsizyqZyqKc"
                placeholder="请输入库存"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="树103微机:">
              <el-input
                v-model="ydscsjtjbForm.dsizyqS103Wj"
                placeholder="请输入树103微机"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="树12微机:">
              <el-input
                v-model="ydscsjtjbForm.dsizyqS12Wj"
                placeholder="请输入树12微机"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="徐30微机:">
              <el-input
                v-model="ydscsjtjbForm.dsizyqX30Wj"
                placeholder="请输入徐30微机"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="徐6微机:">
              <el-input
                v-model="ydscsjtjbForm.dsizyqX6Wj"
                placeholder="请输入徐6微机"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="榆二联接油:">
              <el-input
                v-model="ydscsjtjbForm.dsizyqYelEljy"
                placeholder="请输入榆二联接油"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="榆二联输差:">
              <el-input
                v-model="ydscsjtjbForm.dsizyqYelSc"
                placeholder="请输入榆二联输差"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="榆二联电脱:">
              <el-input
                v-model="ydscsjtjbForm.dsizyqYelDt"
                placeholder="请输入榆二联电脱"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="榆二联污水:">
              <el-input
                v-model="ydscsjtjbForm.dsizyqYelWs"
                placeholder="请输入榆二联污水"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="试验站末端接油量:">
              <el-input
                v-model="ydscsjtjbForm.dsizyqMdjylSyz"
                placeholder="请输入试验站末端接油量"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="东16末端接油量:">
              <el-input
                v-model="ydscsjtjbForm.dsizyqMdjylD16"
                placeholder="请输入东16末端接油量"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="树8末端接油量:">
              <el-input
                v-model="ydscsjtjbForm.dsizyqMdjylS8"
                placeholder="请输入树8末端接油量"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="树127末端接油量:">
              <el-input
                v-model="ydscsjtjbForm.dsizyqMdjylS127"
                placeholder="请输入树127末端接油量"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-divider content-position="left">肇州</el-divider>
        <el-row>
          <el-col :span="12">
            <el-form-item label="肇一计划产油:">
              <el-input
                v-model="ydscsjtjbForm.zzZyJhcy"
                placeholder="请输入肇州一工区计划产油"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="肇一实际产油:">
              <el-input
                v-model="ydscsjtjbForm.zzZySjcy"
                placeholder="请输入肇州一工区实际产油"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="肇一计划注水:">
              <el-input
                v-model="ydscsjtjbForm.zzZyJhzs"
                placeholder="请输入肇州一工区计划注水"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="肇一日注水量:">
              <el-input
                v-model="ydscsjtjbForm.zzZyRzsl"
                placeholder="请输入肇州一工区日注水量"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="肇一作业积压:">
              <el-input
                v-model="ydscsjtjbForm.zzZyZyjy"
                placeholder="请输入肇州一工区作业积压"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="肇一待作业积压:">
              <el-input
                v-model="ydscsjtjbForm.zzZyDzyjy"
                placeholder="请输入肇州一工区待作业积压"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="肇一油井测压:">
              <el-input
                v-model="ydscsjtjbForm.zzZyYjcy"
                placeholder="请输入肇州一工区油井测压"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="肇一水井测压:">
              <el-input
                v-model="ydscsjtjbForm.zzZyShjcy"
                placeholder="请输入肇州一工区水井测压"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="肇二计划产油:">
              <el-input
                v-model="ydscsjtjbForm.zzZeJhcy"
                placeholder="请输入肇州二工区计划产油"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="肇二实际产油:">
              <el-input
                v-model="ydscsjtjbForm.zzZeSjcy"
                placeholder="请输入肇州二工区实际产油"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="肇二计划注水:">
              <el-input
                v-model="ydscsjtjbForm.zzZeJhzs"
                placeholder="请输入肇州二工区计划注水"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="肇二日注水量:">
              <el-input
                v-model="ydscsjtjbForm.zzZeRzsl"
                placeholder="请输入肇州二工区日注水量"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="肇二作业积压:">
              <el-input
                v-model="ydscsjtjbForm.zzZeZyjy"
                placeholder="请输入肇州二工区作业积压"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="肇二待作业积压:">
              <el-input
                v-model="ydscsjtjbForm.zzZeDzyjy"
                placeholder="请输入肇州二工区待作业积压"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="肇二油井测压:">
              <el-input
                v-model="ydscsjtjbForm.zzZeYjcy"
                placeholder="请输入肇州二工区油井测压"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="肇二水井测压:">
              <el-input
                v-model="ydscsjtjbForm.zzZeShjcy"
                placeholder="请输入肇州二工区水井测压"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-divider content-position="left">提捞作业区</el-divider>
        <el-row>
          <el-col :span="12">
            <el-form-item label="计划捞油:">
              <el-input
                v-model="ydscsjtjbForm.tlzyqZyqJhly"
                placeholder="请输入计划捞油"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="实际捞油:">
              <el-input
                v-model="ydscsjtjbForm.tlzyqZyqSjly"
                placeholder="请输入实际捞油"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="东16卸油点:">
              <el-input
                v-model="ydscsjtjbForm.tlzyqXydD16"
                placeholder="请输入东16卸油点"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="树8卸油点:">
              <el-input
                v-model="ydscsjtjbForm.tlzyqXydS18"
                placeholder="请输入树8卸油点"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="捞油合计:">
              <el-input
                v-model="ydscsjtjbForm.tlzyqXydLyhj"
                placeholder="请输入捞油合计"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="新井捞油:">
              <el-input
                v-model="ydscsjtjbForm.tlzyqXydXjly"
                placeholder="请输入新井捞油"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="落地油:">
              <el-input
                v-model="ydscsjtjbForm.tlzyqXydLdy"
                placeholder="请输入落地油"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
      </el-form>

      <el-form
        v-show="!ischeck"
        :inline="true"
        :model="ydscsjtjbForm"
        class="demo-form-inline"
        ref="ydscsjtjbForm"
        label-position="left"
        label-width="80px"
      >
        <el-form-item label="审核:">
          <el-select
            v-model="ydscsjtjbForm.approveStatus"
            placeholder="请选择审核状态"
          >
            <!-- ydscsjtjbForm.approveStatus=='0'? ydscsjtjbForm.approveStatus == '未审核':ydscsjtjbForm.approveStatus=='1'?ydscsjtjbForm.approveStatus == '通过':ydscsjtjbForm.approveStatus == '不通过' -->
            <el-option label="未审核" value="1"></el-option>
            <el-option label="通过" value="2"></el-option>
            <el-option label="不通过" value="3"></el-option>
          </el-select>
        </el-form-item>

        <el-row>
          <el-form-item label="审核备注:">
            <el-input
              v-model="ydscsjtjbForm.approveBz"
              placeholder="请输入审核备注"
            ></el-input>
          </el-form-item>
        </el-row>
      </el-form>

      <div slot="footer" class="dialog-footer" v-show="!ischeck">
        <el-button @click="close('ydscsjtjbForm')">取 消</el-button>
        <el-button type="primary" @click="submitForm('ydscsjtjbForm')"
          >确 定</el-button
        >
      </div>
    </el-dialog>
  </div>
</template>

<script>
import ydscsjtjbApi from "@/api/ydscsjtjb";

export default {
  data() {
    return {
      pageNo: 1, //当前页码
      pageSize: 10, //每页显示数量
      total: 0, //总数量
      // table数据
      tableData:[
        {
          date: "",
          gsCsJkcy: "", //公司-产油-井口产油
          gsCsMdwj: "", //公司-产油-末端微机
          gsCsHscy: "", //公司-产油-核实产油
          gsCsJhcy: "", //公司计划产油
          gsCsGsws: "", //公司-产油-公司外输
          gsCsElws: "", //公司-产油-二联外输
          gsLyLy: "", //公司-拉油-拉油
          gsLyTl: "", //公司-拉油-提捞
          gsLyLdy: "", //公司-拉油-落地油
          gsKcGskc: "", //公司-库存-公司库存
          gsKcElcz: "", //公司-库存-二联差值
          gsKcElkc: "", //公司-库存-二联库存
          gsZsJhzs: "", //公司-注水-计划注水
          gsZsSjsl: "", //公司-注水-实际水量
          gsJyZy: "", //公司-积压-作业
          gsJyDzy: "", //公司-积压-待作业
          gsCyYj: "", //公司-测压-油井
          gsCySj: "", //公司-测压-水井
          dyzyqZyqJhcy: "", //第一作业区-作业区-计划产油
          dyzyqZyqSjcy: "", //第一作业区-作业区-实际产油
          dyzyqZyqJhzs: "", //第一作业区-作业区-计划注水
          dyzyqZyqRzsl: "", //第一作业区-作业区-日注水量
          dyzyqZyqZyjy: "", //第一作业区-作业区-作业积压
          dyzyqZyqDzyjy: "", //第一作业区-作业区-待作业积压
          dyzyqZyqYjcy: "", //第一作业区-作业区-油井测压
          dyzyqZyqShjcy: "", //第一作业区-作业区-水井测压
          dyzyqZyqKc: "", //第一作业区-作业区-库存
          dyzyqS322Wj: "", //第一作业区-树322-微机
          dyzyqD12Wj: "", //第一作业区-东12-微机
          dyzyqS12Wj: "", //第一作业区-尚12-微机
          dezyqZyqJhcy: "", //第二作业区-作业区-计划产油
          dezyqZyqSjcy: "", //第二作业区-作业区-实际产油
          dezyqZyqJhzs: "", //第二作业区-作业区-计划注水
          dezyqZyqRzsl: "", //第二作业区-作业区-日注水量
          dezyqZyqZyjy: "", //第二作业区-作业区-作业积压
          dezyqZyqDzyjy: "", //第二作业区-作业区-待作业积压
          dezyqZyqYjcy: "", //第二作业区-作业区-油井测压
          dezyqZyqShjcy: "", //第二作业区-作业区-水井测压
          dezyqZyqKc: "", //第二作业区-作业区-库存
          dezyqD16Wj: "", //第二作业区-东16-微机
          dezyqD16Wscl: "", //第二作业区-东16-污水处理
          dezyqD14382wj: "", //第二作业区-东14-382微机
          deyzyqD14D14wj: "", //第二作业区-东14-东14微机
          dszyqZyqJhcy: "", //第三作业区-作业区-计划产油
          dszyqZyqSjcy: "", //第三作业区-作业区-实际产油
          dszyqZyqJhzs: "", //第三作业区-作业区-计划注水
          dszyqZyqRzsl: "", //第三作业区-作业区-日注水量
          dszyqZyqZyjy: "", //第三作业区-作业区-作业积压
          dszyqZyqDzyjy: "", //第三作业区-作业区-待作业积压
          dszyqZyqYjcy: "", //第三作业区-作业区-油井测压
          dszyqZyqShjcy: "", //第三作业区-作业区-水井测压
          dszyqZyqKc: "", //第三作业区-作业区-库存
          dszyqS2Cyl: "", //第三作业区-树2-产油量
          dszyq101dCyl: "", //第三作业区-101队-产油量
          dszyq101dZrl: "", //第三作业区-101队-C02注入量
          dszyqS16Wj: "", //第三作业区-树16-微机
          dsizyqZyqJhcy: "", //第四作业区-作业区-计划产油
          dsizyqZyqSjcy: "", //第四作业区-作业区-实际产油
          dsizyqZyqJhzs: "", //第四作业区-作业区-计划注水
          dsizyqZyqRzsl: "", //第四作业区-作业区-日注水量
          dsizyqZyqZyjy: "", //第四作业区-作业区-作业积压
          dsizyqZyqDzyjy: "", //第四作业区-作业区-待作业积压
          dsizyqZyqYjcy: "", //第四作业区-作业区-油井测压
          dsizyqZyqShjcy: "", //第四作业区-作业区-水井测压
          dsizyqZyqKc: "", //第四作业区-作业区-库存
          dsizyqS103Wj: "", //第四作业区-树103-微机
          dsizyqS12Wj: "", //第四作业区-树12-微机
          dsizyqX30Wj: "", //第四作业区-徐30-微机
          dsizyqX6Wj: "", //第四作业区-徐6-微机
          dsizyqYelEljy: "", //第四作业区-榆二联-二联接油
          dsizyqYelSc: "", //第四作业区-榆二联-输差
          dsizyqYelDt: "", //第四作业区-榆二联-电脱
          dsizyqYelWs: "", //第四作业区-榆二联-污水
          dsizyqMdjylSyz: "", //第四作业区-末端接油量-实验站
          dsizyqMdjylD16: "", //第四作业区-末端接油量-东16
          dsizyqMdjylS8: "", //第四作业区-末端接油量-树8
          dsizyqMdjylS127: "", //第四作业区-末端接油量-树127
          zzZyJhcy: "", //肇州-肇州一区-计划产油
          zzZySjcy: "", //肇州-肇州一区-实际产油
          zzZyJhzs: "", //肇州-肇州一区-计划注水
          zzZyRzsl: "", //肇州-肇州一区-日注水量
          zzZyZyjy: "", //肇州-肇州一区-作业积压
          zzZyDzyjy: "", //肇州-肇州一区-待作业积压
          zzZyYjcy: "", //肇州-肇州一区-油井测压
          zzZyShjcy: "", //肇州-肇州一区-水井测压
          zzZeJhcy: "", //肇州-肇州二区-计划产油
          zzZeSjcy: "", //肇州-肇州二区-实际产油
          zzZeJhzs: "", //肇州-肇州二区-计划注水
          zzZeRzsl: "", //肇州-肇州二区-日注水量
          zzZeZyjy: "", //肇州-肇州二区-作业积压
          zzZeDzyjy: "", //肇州-肇州二区-待作业积压
          zzZeYjcy: "", //肇州-肇州二区-油井测压
          zzZeShjcy: "", //肇州-肇州二区-水井测压
          tlzyqZyqJhly: "", //提捞作业区-作业区-计划捞油
          tlzyqZyqSjly: "", //提捞作业区-作业区-实际捞油
          tlzyqXydD16: "", //提捞作业区-卸油点-东16
          tlzyqXydS18: "", //提捞作业区-卸油点-树18
          tlzyqXydLyhj: "", //提捞作业区-卸油点-捞油合计
          tlzyqXydLdy: "", //提捞作业区-卸油点-落地油
          bz: "", //备注
        },
        {
          date: "",
          gsCsJkcy: "", //公司-产油-井口产油
          gsCsMdwj: "", //公司-产油-末端微机
          gsCsHscy: "", //公司-产油-核实产油
          gsCsGsws: "", //公司-产油-公司外输
          gsCsElws: "", //公司-产油-二联外输
          gsLyLy: "", //公司-拉油-拉油
          gsLyTl: "", //公司-拉油-提捞
          gsLyLdy: "", //公司-拉油-落地油
          gsKcGskc: "", //公司-库存-公司库存
          gsKcElcz: "", //公司-库存-二联差值
          gsKcElkc: "", //公司-库存-二联库存
          gsZsJhzs: "", //公司-注水-计划注水
          gsZsSjsl: "", //公司-注水-实际水量
          gsJyZy: "", //公司-积压-作业
          gsJyDzy: "", //公司-积压-待作业
          gsCyYj: "", //公司-测压-油井
          gsCySj: "", //公司-测压-水井
          dyzyqZyqJhcy: "", //第一作业区-作业区-计划产油
          dyzyqZyqSjcy: "", //第一作业区-作业区-实际产油
          dyzyqZyqJhzs: "", //第一作业区-作业区-计划注水
          dyzyqZyqRzsl: "", //第一作业区-作业区-日注水量
          dyzyqZyqZyjy: "", //第一作业区-作业区-作业积压
          dyzyqZyqDzyjy: "", //第一作业区-作业区-待作业积压
          dyzyqZyqYjcy: "", //第一作业区-作业区-油井测压
          dyzyqZyqShjcy: "", //第一作业区-作业区-水井测压
          dyzyqZyqKc: "", //第一作业区-作业区-库存
          dyzyqS322Wj: "", //第一作业区-树322-微机
          dyzyqD12Wj: "", //第一作业区-东12-微机
          dyzyqS12Wj: "", //第一作业区-尚12-微机
          dezyqZyqJhcy: "", //第二作业区-作业区-计划产油
          dezyqZyqSjcy: "", //第二作业区-作业区-实际产油
          dezyqZyqJhzs: "", //第二作业区-作业区-计划注水
          dezyqZyqRzsl: "", //第二作业区-作业区-日注水量
          dezyqZyqZyjy: "", //第二作业区-作业区-作业积压
          dezyqZyqDzyjy: "", //第二作业区-作业区-待作业积压
          dezyqZyqYjcy: "", //第二作业区-作业区-油井测压
          dezyqZyqShjcy: "", //第二作业区-作业区-水井测压
          dezyqZyqKc: "", //第二作业区-作业区-库存
          dezyqD16Wj: "", //第二作业区-东16-微机
          dezyqD16Wscl: "", //第二作业区-东16-污水处理
          dezyqD14382wj: "", //第二作业区-东14-382微机
          deyzyqD14D14wj: "", //第二作业区-东14-东14微机
          dszyqZyqJhcy: "", //第三作业区-作业区-计划产油
          dszyqZyqSjcy: "", //第三作业区-作业区-实际产油
          dszyqZyqJhzs: "", //第三作业区-作业区-计划注水
          dszyqZyqRzsl: "", //第三作业区-作业区-日注水量
          dszyqZyqZyjy: "", //第三作业区-作业区-作业积压
          dszyqZyqDzyjy: "", //第三作业区-作业区-待作业积压
          dszyqZyqYjcy: "", //第三作业区-作业区-油井测压
          dszyqZyqShjcy: "", //第三作业区-作业区-水井测压
          dszyqZyqKc: "", //第三作业区-作业区-库存
          dszyqS2Cyl: "", //第三作业区-树2-产油量
          dszyq101dCyl: "", //第三作业区-101队-产油量
          dszyq101dZrl: "", //第三作业区-101队-C02注入量
          dszyqS16Wj: "", //第三作业区-树16-微机
          dsizyqZyqJhcy: "", //第四作业区-作业区-计划产油
          dsizyqZyqSjcy: "", //第四作业区-作业区-实际产油
          dsizyqZyqJhzs: "", //第四作业区-作业区-计划注水
          dsizyqZyqRzsl: "", //第四作业区-作业区-日注水量
          dsizyqZyqZyjy: "", //第四作业区-作业区-作业积压
          dsizyqZyqDzyjy: "", //第四作业区-作业区-待作业积压
          dsizyqZyqYjcy: "", //第四作业区-作业区-油井测压
          dsizyqZyqShjcy: "", //第四作业区-作业区-水井测压
          dsizyqZyqKc: "", //第四作业区-作业区-库存
          dsizyqS103Wj: "", //第四作业区-树103-微机
          dsizyqS12Wj: "", //第四作业区-树12-微机
          dsizyqX30Wj: "", //第四作业区-徐30-微机
          dsizyqX6Wj: "", //第四作业区-徐6-微机
          dsizyqYelEljy: "", //第四作业区-榆二联-二联接油
          dsizyqYelSc: "", //第四作业区-榆二联-输差
          dsizyqYelDt: "", //第四作业区-榆二联-电脱
          dsizyqYelWs: "", //第四作业区-榆二联-污水
          dsizyqMdjylSyz: "", //第四作业区-末端接油量-实验站
          dsizyqMdjylD16: "", //第四作业区-末端接油量-东16
          dsizyqMdjylS8: "", //第四作业区-末端接油量-树8
          dsizyqMdjylS127: "", //第四作业区-末端接油量-树127
          zzZyJhcy: "", //肇州-肇州一区-计划产油
          zzZySjcy: "", //肇州-肇州一区-实际产油
          zzZyJhzs: "", //肇州-肇州一区-计划注水
          zzZyRzsl: "", //肇州-肇州一区-日注水量
          zzZyZyjy: "", //肇州-肇州一区-作业积压
          zzZyDzyjy: "", //肇州-肇州一区-待作业积压
          zzZyYjcy: "", //肇州-肇州一区-油井测压
          zzZyShjcy: "", //肇州-肇州一区-水井测压
          zzZeJhcy: "", //肇州-肇州二区-计划产油
          zzZeSjcy: "", //肇州-肇州二区-实际产油
          zzZeJhzs: "", //肇州-肇州二区-计划注水
          zzZeRzsl: "", //肇州-肇州二区-日注水量
          zzZeZyjy: "", //肇州-肇州二区-作业积压
          zzZeDzyjy: "", //肇州-肇州二区-待作业积压
          zzZeYjcy: "", //肇州-肇州二区-油井测压
          zzZeShjcy: "", //肇州-肇州二区-水井测压
          tlzyqZyqJhly: "", //提捞作业区-作业区-计划捞油
          tlzyqZyqSjly: "", //提捞作业区-作业区-实际捞油
          tlzyqXydD16: "", //提捞作业区-卸油点-东16
          tlzyqXydS18: "", //提捞作业区-卸油点-树18
          tlzyqXydLyhj: "", //提捞作业区-卸油点-捞油合计
          tlzyqXydLdy: "", //提捞作业区-卸油点-落地油
          bz: "", //备注
        },],
      //当前页码
      currentPage: 1,
      //表单填报的数据
      ydscsjtjbForm: {
        id:'',
        approveStatus:'',//审核状态
        approveBz:'',//审核备注
        rq:'',//填报日期
        gsCsJkcy: "", //公司-产油-井口产油
        gsCsMdwj: "", //公司-产油-末端微机
        gsCsJhcy: "", //公司计划产油
        gsCsHscy: "", //公司-产油-核实产油
        gsCsGsws: "", //公司-产油-公司外输
        gsCsElws: "", //公司-产油-二联外输
        gsLyLy: "", //公司-拉油-拉油
        gsLyTl: "", //公司-拉油-提捞
        gsLyLdy: "", //公司-拉油-落地油
        gsKcGskc: "", //公司-库存-公司库存
        gsKcElcz: "", //公司-库存-二联差值
        gsKcElkc: "", //公司-库存-二联库存
        gsZsJhzs: "", //公司-注水-计划注水
        gsZsSjsl: "", //公司-注水-实际水量
        gsJyZy: "", //公司-积压-作业
        gsJyDzy: "", //公司-积压-待作业
        gsCyYj: "", //公司-测压-油井
        gsCySj: "", //公司-测压-水井
        dyzyqZyqJhcy: "", //第一作业区-作业区-计划产油
        dyzyqZyqSjcy: "", //第一作业区-作业区-实际产油
        dyzyqZyqJhzs: "", //第一作业区-作业区-计划注水
        dyzyqZyqRzsl: "", //第一作业区-作业区-日注水量
        dyzyqZyqZyjy: "", //第一作业区-作业区-作业积压
        dyzyqZyqDzyjy: "", //第一作业区-作业区-待作业积压
        dyzyqZyqYjcy: "", //第一作业区-作业区-油井测压
        dyzyqZyqShjcy: "", //第一作业区-作业区-水井测压
        dyzyqZyqKc: "", //第一作业区-作业区-库存
        dyzyqS322Wj: "", //第一作业区-树322-微机
        dyzyqD12Wj: "", //第一作业区-东12-微机
        dyzyqS12Wj: "", //第一作业区-尚12-微机
        dezyqZyqJhcy: "", //第二作业区-作业区-计划产油
        dezyqZyqSjcy: "", //第二作业区-作业区-实际产油
        dezyqZyqJhzs: "", //第二作业区-作业区-计划注水
        dezyqZyqRzsl: "", //第二作业区-作业区-日注水量
        dezyqZyqZyjy: "", //第二作业区-作业区-作业积压
        dezyqZyqDzyjy: "", //第二作业区-作业区-待作业积压
        dezyqZyqYjcy: "", //第二作业区-作业区-油井测压
        dezyqZyqShjcy: "", //第二作业区-作业区-水井测压
        dezyqZyqKc: "", //第二作业区-作业区-库存
        dezyqD16Wj: "", //第二作业区-东16-微机
        dezyqD16Wscl: "", //第二作业区-东16-污水处理
        dezyqD14382wj: "", //第二作业区-东14-382微机
        deyzyqD14D14wj: "", //第二作业区-东14-东14微机
        dszyqZyqJhcy: "", //第三作业区-作业区-计划产油
        dszyqZyqSjcy: "", //第三作业区-作业区-实际产油
        dszyqZyqJhzs: "", //第三作业区-作业区-计划注水
        dszyqZyqRzsl: "", //第三作业区-作业区-日注水量
        dszyqZyqZyjy: "", //第三作业区-作业区-作业积压
        dszyqZyqDzyjy: "", //第三作业区-作业区-待作业积压
        dszyqZyqYjcy: "", //第三作业区-作业区-油井测压
        dszyqZyqShjcy: "", //第三作业区-作业区-水井测压
        dszyqZyqKc: "", //第三作业区-作业区-库存
        dszyqS2Cyl: "", //第三作业区-树2-产油量
        dszyq101dCyl: "", //第三作业区-101队-产油量
        dszyq101dZrl: "", //第三作业区-101队-C02注入量
        dszyqS16Wj: "", //第三作业区-树16-微机
        dsizyqZyqJhcy: "", //第四作业区-作业区-计划产油
        dsizyqZyqSjcy: "", //第四作业区-作业区-实际产油
        dsizyqZyqJhzs: "", //第四作业区-作业区-计划注水
        dsizyqZyqRzsl: "", //第四作业区-作业区-日注水量
        dsizyqZyqZyjy: "", //第四作业区-作业区-作业积压
        dsizyqZyqDzyjy: "", //第四作业区-作业区-待作业积压
        dsizyqZyqYjcy: "", //第四作业区-作业区-油井测压
        dsizyqZyqShjcy: "", //第四作业区-作业区-水井测压
        dsizyqZyqKc: "", //第四作业区-作业区-库存
        dsizyqS103Wj: "", //第四作业区-树103-微机
        dsizyqS12Wj: "", //第四作业区-树12-微机
        dsizyqX30Wj: "", //第四作业区-徐30-微机
        dsizyqX6Wj: "", //第四作业区-徐6-微机
        dsizyqYelEljy: "", //第四作业区-榆二联-二联接油
        dsizyqYelSc: "", //第四作业区-榆二联-输差
        dsizyqYelDt: "", //第四作业区-榆二联-电脱
        dsizyqYelWs: "", //第四作业区-榆二联-污水
        dsizyqMdjylSyz: "", //第四作业区-末端接油量-实验站
        dsizyqMdjylD16: "", //第四作业区-末端接油量-东16
        dsizyqMdjylS8: "", //第四作业区-末端接油量-树8
        dsizyqMdjylS127: "", //第四作业区-末端接油量-树127
        zzZyJhcy: "", //肇州-肇州一区-计划产油
        zzZySjcy: "", //肇州-肇州一区-实际产油
        zzZyJhzs: "", //肇州-肇州一区-计划注水
        zzZyRzsl: "", //肇州-肇州一区-日注水量
        zzZyZyjy: "", //肇州-肇州一区-作业积压
        zzZyDzyjy: "", //肇州-肇州一区-待作业积压
        zzZyYjcy: "", //肇州-肇州一区-油井测压
        zzZyShjcy: "", //肇州-肇州一区-水井测压
        zzZeJhcy: "", //肇州-肇州二区-计划产油
        zzZeSjcy: "", //肇州-肇州二区-实际产油
        zzZeJhzs: "", //肇州-肇州二区-计划注水
        zzZeRzsl: "", //肇州-肇州二区-日注水量
        zzZeZyjy: "", //肇州-肇州二区-作业积压
        zzZeDzyjy: "", //肇州-肇州二区-待作业积压
        zzZeYjcy: "", //肇州-肇州二区-油井测压
        zzZeShjcy: "", //肇州-肇州二区-水井测压
        tlzyqZyqJhly: "", //提捞作业区-作业区-计划捞油
        tlzyqZyqSjly: "", //提捞作业区-作业区-实际捞油
        tlzyqXydD16: "", //提捞作业区-卸油点-东16
        tlzyqXydS18: "", //提捞作业区-卸油点-树18
        tlzyqXydLyhj: "", //提捞作业区-卸油点-捞油合计
        tlzyqXydXjly:"",//新井捞油
        tlzyqXydLdy: "", //提捞作业区-卸油点-落地油
        bz: "", //备注
      },
      //验证规则
      rules: {
        ydscsjtjbmc: [
          { required: true, message: '请输入水源井名称', trigger: 'blur' },
        ],
        ssdw: [
          { required: true, message: '请输入所属单位', trigger: 'blur' }
        ],
        tcrq: [
          { required: true, message: '请选择日期', trigger: 'change' }
        ],
      },
      //时间快捷选择
      pickerOptions: {
        // disabledDate(time) {
        //   return time.getTime() > Date.now();
        // },
        shortcuts: [{
          text: '今天',
          onClick(picker) {
            picker.$emit('pick', new Date());
          }
        }, {
          text: '昨天',
          onClick(picker) {
            const date = new Date();
            date.setTime(date.getTime() - 3600 * 1000 * 24);
            picker.$emit('pick', date);
          }
        }, {
          text: '一周前',
          onClick(picker) {
            const date = new Date();
            date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);
            picker.$emit('pick', date);
          }
        }]
      },
      //获取当前日期
      currentTime:'',
      //
      saveAsDialog:'',
      //编辑框是否显示
      dialogFormVisible: false,
      //弹出框是否是查看
      ischeck: false,
      //控制查看时不可更改数据
      isInput:false,
      //弹出框标题
      myDialogTitle: '',
    }
  },
  created(){
    this.search();
  },
  mounted(){
    this.filterTime();
    // this.initDate();
  },
  // computed:{
  //   isBetterToStr() {
  //     return this.ydscsjtjbForm.approveStatus.toString()
  //   }
  // },
  methods: {
    /**
    * 查询列表
    */
    async search() {
      // this.pageNo = pageNo; //当前页码
      // this.pageSize = pageSize; //每页显示数量
      //发送查询请求
      let res = await ydscsjtjbApi.getDataList(this.pageNo,this.pageSize,0);
      //判断是否成功
      if(res.success){
        console.log(res.data);
        //赋值
        this.tableData = res.data.records;
        //总数量
        this.total = res.data.total;
      }
    },
    onSubmit() {
      console.log('submit!');
    },
    //关闭对话框
    handleClose(done) {      
      // 清空表单
      // this.$refs['ydscsjtjbForm'].resetFields();
      // 清空表单校验，避免再次进来会出现上次校验的记录
      this.$refs['ydscsjtjbForm'].clearValidate()
      done()
      
    },
      // 弹框关闭触发
    close(formName) {
      this.dialogFormVisible = false;
      // 清空表单校验，避免再次进来会出现上次校验的记录
      this.$refs[formName].clearValidate()
    },

    submitForm(formName) {
      //表单验证
      this.$refs[formName].validate(async (valid) => {
          if (valid) {
              let res = null;
              console.log(this.ydscsjtjbForm.id+"111")
              //判断菜单ID是否为空
              if (this.ydscsjtjbForm.id === '') {
                // this.ydscsjtjbForm.rq = this.currentTime;
                  //发送添加请求
                  res = await ydscsjtjbApi.addData(this.ydscsjtjbForm);
              } else {
                  //发送审核请求
                  console.log(334345)
                  res = await ydscsjtjbApi.updateData(this.ydscsjtjbForm);
              }
              console.log(res)
              //判断是否成功
              if (res.success) {
                  // this.$message.success(res.message);
                  this.$message({ message: '修改审核状态成功！', type: 'success' });
                  //刷新
                  this.search();
                  //关闭窗口
                  this.dialogFormVisible = false;
              } else {
                console.log(res)
                  this.$message.error(res.message);
              }
          }
      })
    },
    handleClick(row, handle) {
      // console.log(row.approveStatus);
      this.dialogFormVisible = true;
      if (handle == 'check') {
        this.myDialogTitle = '月度生产数据统计表'
        this.saveAsDialog = 'saveAsDialog1'
        this.ischeck = true
        this.isInput = true;// 1.表单禁用
        // this.ydscsjtjbForm = row
        this.$objCopy(row, this.ydscsjtjbForm);//把当前要编辑的数据复制到数据域，给表单回显
        this.$message({ message: '成功打开', type: 'success' });
      } else if (handle == 'edit') {
          if(row.approveStatus!=2){
            this.myDialogTitle = '月度生产数据统计表审核'
            this.saveAsDialog = 'saveAsDialog2'
            this.ischeck = false  
            this.isInput = false     
            this.$objCopy(row, this.ydscsjtjbForm);//把当前要编辑的数据复制到数据域，给表单回显  
            this.ydscsjtjbForm.approveStatus = row.approveStatus.toString()
          }else {
            this.dialogFormVisible = false;
            this.$message({ message: '已通过不可再审核！', type: 'error' });
          }
        }
    },
    /*** 当每页数量发生变化时触发该事件 */
    handleSizeChange(size) {
      console.log(size);
      this.pageSize = size;
      //将每页显示的数量交给成员变量
      this.search(this.pageNo, size);
    },
    /*** 当页码发生变化时触发该事件 */
    handleCurrentChange(page) {
      console.log(page);
      this.pageNo = page;
      //调用查询方法
      this.search(page, this.pageSize);
    },
    // 序号计算
    indexMethod (index) {
    // index默认在0开始，这里+1
      return index + 1 + (this.pageNo - 1) * this.pageSize
    },
    // 获取当前日期
    filterTime() {
      var date = new Date();
      var y = date.getFullYear();
      var m = date.getMonth() + 1;
      m = m < 10 ? '0' + m : m;
      var d = date.getDate();
      d = d < 10 ? '0' + d : d;
      this.currentTime = y + '-' + m + '-' + d;
    },
  }
}
</script>

<style lang="scss" scoped>
// 标题
.mytitle {
  font-size: large;
  padding-left: 10px;
  margin-bottom: 16px;
  float: left;
}

//按钮组
.myButtons {
  float: right;
}

//格子的样式
.bg-white {
  background: #ffffff;
}

.grid-content {
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 4px;
}

.calendar ::v-deep .el-button-group::before {
  display: none;
}

.calendar ::v-deep .el-button-group::after {
  display: none;
}

// 分割线样式
.el-divider--horizontal {
  display: block;
  height: 2px;
  width: 100%;
  margin: 24px 0;
}

// 表单各项的样式
.el-form-item {
  margin: 15px 10px 15px 10px;
}

//表单禁用字体样式
.el-input.is-disabled ::v-deep .el-input__inner {
  color: #606266;
}
//对话框宽度
// .customWidth{
//         width:80%;
//     }
::v-deep .saveAsDialog1 {
  width: 60% !important;
}
::v-deep .saveAsDialog2 {
  width: 21% !important;
}
//日期选择框宽度
.el-date-editor.el-input,
.el-date-editor.el-input__inner {
  width: 200px;
}

.el-input {
  width: 200px;
}
</style>